#include "EWAUILayoutParams.hpp"

namespace Eyer
{
    EWAUILayoutParams EWAUILayoutParams::MATCH_PARENT     (1, "MATCH_PARENT");
    EWAUILayoutParams EWAUILayoutParams::WRAP_CONTENT     (2, "WRAP_CONTENT");
    EWAUILayoutParams EWAUILayoutParams::FIXED            (3, "FIXED");

    EWAUILayoutParams::EWAUILayoutParams(int _id, const EyerString & _name)
    {
        id = _id;
        name = _name;
    }

    EWAUILayoutParams::~EWAUILayoutParams()
    {

    }

    EWAUILayoutParams::EWAUILayoutParams(const EWAUILayoutParams & params)
    {
        *this = params;
    }

    EWAUILayoutParams & EWAUILayoutParams::operator = (const EWAUILayoutParams & params)
    {
        id = params.id;
        name = params.name;
        return *this;
    }

    bool EWAUILayoutParams::operator == (const EWAUILayoutParams & params)
    {
        return id == params.id;
    }

    bool EWAUILayoutParams::operator != (const EWAUILayoutParams & params)
    {
        return id != params.id;
    }

    const EyerString & EWAUILayoutParams::GetName()
    {
        return name;
    }
}